home *** CD-ROM | disk | FTP | other *** search
/ Amiga Plus 2002 #11 / Amiga Plus CD - 2002 - No. 11.iso / Tools / Development / PowerD / powerd / modules.lha / modules / libraries / asyncio.m < prev    next >
Encoding:
Text File  |  2002-05-23  |  917 b   |  40 lines

  1. MODULE  'exec/ports','dos/dos','dos/dosextens'
  2.  
  3. OBJECT AsyncFile
  4.   File:BPTR,
  5.   BlockSize:ULONG,
  6.   Handler:PTR TO MsgPort,
  7.   Offset:PTR TO UBYTE,
  8.   BytesLeft:LONG,
  9.   BufferSize:ULONG,
  10.   Buffers[2]:PTR TO UBYTE,
  11.   Packet:StandardPacket,
  12.   PacketPort:MsgPort,
  13.   CurrentBuf:ULONG,
  14.   SeekOffset:ULONG,
  15.   PacketPending:UBYTE,
  16.   ReadMode:UBYTE,
  17.   CloseFH:UBYTE,
  18.  
  19. /* The following members were not listed in the V39 source code
  20. of asyncio.library, although they were used.
  21. I decided to add them at the end.
  22. Any, this structure is private and you should keep you hand off
  23. unless you dnot know how to use then !!! */
  24.  
  25.   SeekPastEOF:UBYTE,
  26.   LastRes1:LONG,
  27.   LastBytesLeft:LONG
  28.  
  29. /*
  30. These enum werde typedef structures before. I turned them into ints.
  31. But this does not affect your code anyway (100% compatible ! to V39 !)
  32. */
  33. ENUM  MODE_READ,
  34.     MODE_WRITE,
  35.     MODE_APPEND
  36.  
  37. ENUM  MODE_START=-1,
  38.     MODE_CURRENT,
  39.     MODE_END
  40.